package com.chaos.framework.model.config;


import java.util.concurrent.TimeUnit;

public enum RedisExpireEnum {
    UNREAD_MSG(30L, TimeUnit.DAYS);

    private final Long time;

    private final TimeUnit timeUnit;

    RedisExpireEnum(Long time, TimeUnit timeUnit) {
        this.time = time;
        this.timeUnit = timeUnit;
    }

    public Long getTime() {
        return time;
    }

    public TimeUnit getTimeUnit() {
        return timeUnit;
    }
}
